package edu.njit.hz278.core.web;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Specifies the parameter (of HttpServletRequest) name for a parameter (of a
 * method).
 * 
 * @author Rivers Zhang
 */
@Target({ ElementType.PARAMETER })
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Param {

	String value() default "";

	/**
	 * Whether the argument MUST be valid.
	 * 
	 * @return
	 */
	boolean forceValid() default false;
}
